package com.aspose.cells;

import java.util.Iterator;

public class zcfr implements Iterator {
   private zcfq a;
   private zcfq b;
   private boolean c;

   public zcfr(zcfq var1) {
      this.a = var1;
      this.c = true;
   }

   public boolean hasNext() {
      if (this.c) {
         this.c = false;
         this.b = this.a.k();
      } else if (this.b != null) {
         if (this.b == this.a.d) {
            this.b = null;
         } else {
            this.b = this.b.c;
         }
      }

      return this.b != null;
   }

   public Object next() {
      return this.b;
   }

   public void remove() {
      throw new UnsupportedOperationException();
   }
}
